package de.andreavicentini.teatralia.pages.repertoire;

import org.magiclabs.htmlx.TextStructure.TextKey;

import de.andreavicentini.teatralia.generate.LesungRenderer;
import de.andreavicentini.teatralia.pages.IRenderer;

public class Lesung implements IPlay {

	public Lesung(String title, TextKey description) {
		this(title, description, null);
	}
	public Lesung(String title, TextKey description, String image) {
		this.title = title;
		this.description = description;
		this.image = image;
	}

	public IRenderer<IPlay> getRenderer() {
		return new LesungRenderer();
	}
	
	public String getStyle() {
		return "lesung";
	}
	
	private final String title;
	public String getTitle() {
		return title;
	}
	
	private final String image;
	public String getImage() {
		return this.image;
	}
	
	private final TextKey description;
	public TextKey getDescription() {
		return description;
	}
	
	
	public int compareTo(IPlay o) {
		return this.title.compareTo(o.getTitle());
	}

}
